package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/hello")
public class HelloWorld {
    //要做什么事，具体的功能是什么
    @RequestMapping("/print")
    @ResponseBody
    public String hello() {
        System.out.println("我先说一句话");
        return "你来了！！";
    }
}
